export default [
  {
    path: '/login',
    component: 'login',
  },
  {
    path: '/',
    component: '@/layout/index',
    routes: [
      {
        path: '/monitor',
        component: '@/pages/monitor/index',
        routes: [
          {
            path: '/monitor/main',
            component: '@/pages/monitor/main/index',
          },
          {
            path: '/monitor/analysis',
            component: '@/pages/monitor/analysis/index',
          },
        ],
      },
      {
        path: '/group/:mid',
        component: '@/pages/group/index',
        routes: [
          {
            path: '/group/:mid/main',
            component: '@/pages/group/main/index',
          },
          {
            path: '/group/:mid/grouping',
            component: '@/pages/group/grouping/index',
          },
          {
            path: '/group/:mid/miner',
            component: '@/pages/group/miner/index',
          },
          {
            path: '/group/:mid/card',
            component: '@/pages/group/card/index',
          },
        ],
      },
      {
        path: '/miner/:mid/:gid/:active',
        component: '@/pages/miner/index',
      },
      {
        path: '/miner-dt/:mid/:mac',
        component: '@/pages/miner-dt/index',
      },
    ],
  },
];
